package jay;

import java.util.Scanner;

public class sangeshu {

	public static void main(String[] args) {
			int a=0,b=0,c=0;								
		System.out.println("请输入三个数:");
		Scanner input=new Scanner(System.in);
		a=input.nextInt();
		b=input.nextInt();
		c=input.nextInt();
		int t=a>b?a:b;
		int max=t>c?t:c;
		int m=a<b?a:b;
		int min=m<c?t:c;
		System.out.println("最小数是"+min);
		System.out.println("中间一个数是"+(a+b+c-max-min));
		System.out.println("最大数是"+max);
	}

}
